import { configureStore } from "@reduxjs/toolkit";
import appSlice from "./modules/appSlice.tsx";
import echartsSlice from "./modules/echartsSlice.tsx";

const store = configureStore({
  reducer: {
    app: appSlice,
    echarts: echartsSlice,
    // other reducers...
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      //关闭redux序列化检测
      serializableCheck: false,
    }),
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;
